package cn.yyh.commons.exception;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: MyException
 * @Package: com.atguigu.servicebase.exceptionhandler
 * @date 2021/7/8
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MyException extends RuntimeException{

    @ApiModelProperty(value = "状态码")
    private Integer code;


    public MyException() {
    }

    public MyException(String message) {
        super(message);
    }
}
